cmake_minimum_required(VERSION 3.16)
project(hkcam)
set(CMAKE_CXX_STANDARD 17)


#ADD_COMPILE_DEFINITIONS(DEBUG_PROCESS )
#add_compile_definitions(DEBUG_PARAMETERS DEBUG_SHOW)
if(${CMAKE_SYSTEM} MATCHES "Linux")
    file(GLOB SDK_PATH ${CMAKE_CURRENT_SOURCE_DIR}/IndustrialCamera/lib/linux/*)
elseif (${CMAKE_SYSTEM} MATCHES "Darwin")
    file(GLOB SDK_PATH ${CMAKE_CURRENT_SOURCE_DIR}/IndustrialCamera/lib/darwin/*)
endif ()
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)


include_directories(
        ${OpenCV_INCLUDE_DIRS}
        ${CMAKE_CURRENT_SOURCE_DIR}
        ${CMAKE_CURRENT_BINARY_DIR}
        ${EIGEN3_INCLUDE_DIRS}
)

include_directories(
        Data/
        IndustrialCamera/include
        Logging/include
)

file(GLOB_RECURSE source
        IndustrialCamera/src/*
        Logging/src/*
        )

add_executable(${PROJECT_NAME}
        main.cpp ${source})

target_link_libraries(${PROJECT_NAME}
        ${OpenCV_LIBS}
        ${Eigen3_LIBRARIES}
        ${SDK_PATH}
        -lpthread -lm
        )